package
{
	import flash.geom.Point;
	import flash.geom.Rectangle;
	
	public interface ISpatialIndex
	{
		function add(entity:ISpatialIndexable):void;
		function remove(entity:ISpatialIndexable):void;
		function find(entity:ISpatialIndexable):Boolean;
		function getPointCollisions(pnt:Point):Vector.<ISpatialIndexable>;
		function getRectCollisions(rect:Rectangle):Vector.<ISpatialIndexable>; 
	}
}